<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<!--头部公共部分-->
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/my.css" th:href="@{/css/my.css}">
    <!--布局排版-->
    <link rel="stylesheet" href="../static/css/typo.css" th:href="@{/css/typo.css}">
    <!--动画效果-->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
    <!--代码高亮-->
    <link rel="stylesheet" href="../static/lib/prism/prism.css" th:href="@{/lib/prism/prism.css}">
    <!--目录生成-->
    <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.11.1/tocbot.css"> -->
    <link rel="stylesheet" href="../static/lib/tocbot/tocbot.css" th:href="@{/lib/tocbot/tocbot.css}">
    <title th:replace="${title}">详情页</title>
</head>
<body>
<!--导航公共部分-->
    <!--导航-->
    <nav th:fragment="menu(n)" id="nav" class="ui inverted attached segment m-padded-tb-mini" style="border: none;">
        <div class="ui container">
            <div class="ui inverted secondary stackable menu">
                <h2 class="ui teal header item">DyBlog</h2>
                <a href="#" th:href="@{/}" class="m-item item m-mobile-hide m-text-mini" th:classappend="${n==1} ? 'active red'"><i class="home icon"></i>首页</a>
                <a href="#" th:href="@{/types}" class="m-item item m-mobile-hide m-text-mini" th:classappend="${n==2} ? 'active red'"><i class="idea icon"></i>分类</a>
                <a href="#" th:href="@{/tags}" class="m-item item m-mobile-hide m-text-mini" th:classappend="${n==3} ? 'active red'"><i class="tags icon"></i>标签</a>
                <a href="#" th:href="@{/archives}" class="m-item item m-mobile-hide m-text-mini" th:classappend="${n==4} ? 'active red'"><i class="tags icon"></i>归档</a>
                <a href="#" class="m-item item m-mobile-hide m-text-mini" th:classappend="${n==5} ? 'active red'"><i
                        class="calendar check outline icon" th:classappend="${n==6} ? 'active red'"></i>时间轴</a>
                <a href="#" class="m-item item m-mobile-hide m-text-mini" th:classappend="${n==7} ? 'active red'"><i class="edit outline icon"></i>留言</a>
                <a href="#" th:href="@{/about}" class="m-item item m-mobile-hide m-text-mini" th:classappend="${n==8} ? 'active red'"><i class="info icon"></i>关于我</a>
                <div class="right item m-mobile-hide">
                    <form action="#" th:action="@{/search}" target="_blank">
                        <div class="ui icon inverted transparent input">
                            <input type="text" name="query" placeholder="Search...." th:value="${query}"></input>
                            <i onclick="document.forms['search'].submit()" class="search link icon"></i>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <!--目录图标-->
        <!--menu_toggle按钮事件，让导航在手机端可以点击展开-->
        <a href="#" class="ui menu_toggle black icon button m-top-right m-mobile-show">
            <i class="sidebar icon"></i>
        </a>
    </nav>
<!--底部公共部分-->
    <!--底部footer-->
    <footer th:fragment="footer" id="db" class="ui inverted vertical segment m-padded-tb-massive">
        <div class="ui center aligned container">
            <!--布局16份,3337-->
            <div class="ui inverted divided stackable grid">
                <div class="three wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/images/dymp.jpg" th:src="@{/images/dymp.jpg}" class="ui rounded image" alt="" style="width: 100px;">
                        </div>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                    <!--竖着的列表-->
                    <div class="ui inverted link list">
                        <a href="#" class="item">用户故事</a>
                        <a href="#" class="item">用户故事</a>
                        <a href="#" class="item">用户故事</a>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">联系我</h4>
                    <!--竖着的列表-->
                    <div class="ui inverted link list">
                        <a href="#" class="item">Email：dyinin@qq.com</a>
                        <a href="#" class="item">QQ:2985922950</a>
                    </div>
                </div>
                <div class="seven wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">dingyu</h4>
                    <!--竖着的列表-->
                    <div class="ui inverted link list m-text-thin m-text-spaced m-opacity-mini">
                        <p>这是我的个人博客</p>
                    </div>
                </div>
            </div>
            <div class="ui inverted section divider"></div>
            <p class="m-text-thin m-text-spaced m-opacity-mini">Copyright © 2020-2021 DingYu Designed by DingYu</p>
        </div>
    </footer>
<!--js公共部分-->
    <th:block th:fragment="script">
        <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
        <script src="../static/lib/prism/prism.js" th:src="@{/lib/prism/prism.js}"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.11.1/tocbot.min.js"></script>
        <!--二维码生成-->
        <script src="../static/lib/qrcode/qrcode.js" th:src="@{/lib/qrcode/qrcode.js}"></script>
        <!--平滑滚动-->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-scrollTo/2.1.3/jquery.scrollTo.min.js"></script>
        <!--滚动检测-->
        <script src="../static/lib/waypoints/jquery.waypoints.js" th:src="@{/lib/waypoints/jquery.waypoints.js}"></script>

    </th:block>
</body>
</html>